package com.iraeta.entity.main;

import java.io.Serializable;
import java.util.Objects;

/**
 * erp_cangku
 * @author 
 */
public class ErpCangku implements Serializable {
    private Integer id;

    private String cwhcode;

    private String cwhname;

    private Integer lockstatus;

    private Integer userid;

    public ErpCangku() {
    }

    public ErpCangku(String cwhcode, String cwhname, Integer lockstatus, Integer userid) {
        this.cwhcode = cwhcode;
        this.cwhname = cwhname;
        this.lockstatus = lockstatus;
        this.userid = userid;
    }

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCwhcode() {
        return cwhcode;
    }

    public void setCwhcode(String cwhcode) {
        this.cwhcode = cwhcode;
    }

    public String getCwhname() {
        return cwhname;
    }

    public void setCwhname(String cwhname) {
        this.cwhname = cwhname;
    }

    public Integer getLockstatus() {
        return lockstatus;
    }

    public void setLockstatus(Integer lockstatus) {
        this.lockstatus = lockstatus;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof ErpCangku)) return false;
        ErpCangku erpCangku = (ErpCangku) o;
        return Objects.equals(id, erpCangku.id) && Objects.equals(cwhcode, erpCangku.cwhcode);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, cwhcode);
    }
}